home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7261 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: pegasus.montclair.edu!harmon
  2. From: harmon@pegasus.montclair.edu (Derek Harmon)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: (VOID *) Problems
  5. Date: 14 Feb 1996 02:00:01 -0500
  6. Organization: Montclair State University
  7. Message-ID: <harmon.824280714@pegasus.montclair.edu>
  8. References: <3120F9B8.167E@pangea.stanford.edu> <fcusack-1302961720420001@mudskipper.cac.psu.edu>
  9. NNTP-Posting-Host: pegasus.montclair.edu
  10. X-Newsreader: NN version 6.5.0 #68 (NOV)
  11.  
  12. fcusack@tdx.org (frank.) writes:
  13. >>   z = (double *)p;                   /*  problems. I also tried other
  14. >>                                          cast forms.  */
  15. >        ^^^^^^^^^^^
  16.  
  17. >here you try to assign a double * to z, which does not match z's type.
  18.  
  19. >Try z = &p; /* or z = &(double *) p; /* but the cast is not really needed */
  20.  
  21.    So, as you were saying, assigning a double * to z.. which doesn't match
  22. z's type.  >%)  Perhaps you mean something like,
  23.  
  24.    z = *p;   /* or z = *(double *)p; */
  25.                                                        -- Stone
  26. --
  27. # Derek Harmon (aka Stonelight)    harmon@pegasus.montclair.edu
  28. # - Computer Science Undergrad, Montclair State University, NJ
  29. # - My views are my own, nobody else is this creative.  3;)>
  30. ... Wascally Wabbits, Inc.  All Wights Weswerved.
  31.  
  32.